function RequestListAssistant(argFromPusher) {
}

RequestListAssistant.prototype = {
	requestList: [],
	setup: function() {
		Ares.setupSceneAssistant(this);
		var this1 = this;
		drupalService('uc_order.requestlist', {uid: user.uid}, this, function(data) {
			data.each(function(d){
				d.createdStr = new Date(parseInt(d.created)*1000).toString().substring(4,24);
			});
			this1.requestList = data;
			this1.$.list1.setItems(data.filter(function(val){
				return val.tid == this1.$.radioButton1.getValue();
			}));
		});
	},
	activate: function() {
		this.$.radioButton1.setValue(this.$.radioButton1.getValue());
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	},
	header1Tap: function(inSender, event) {
		myAlert(this, event.down.pageX + " , " + event.down.pageY)
	},
	radioButton1Change: function(inSender, event) {
		var this1 = this;
		this.$.list1.setItems(this.requestList.filter(function(val){
			return val.tid == this1.$.radioButton1.getValue();
		}));
	},
	list1Listtap: function(inSender, event) {
		Mojo.Controller.stageController.pushScene("requestDetail", {nid: event.item.nid});
	},
};